package com.atguigu.tingshu.order.service;

import com.atguigu.tingshu.model.order.OrderInfo;
import com.atguigu.tingshu.vo.order.OrderInfoVo;
import com.atguigu.tingshu.vo.order.TradeVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

public interface OrderInfoService extends IService<OrderInfo> {




    OrderInfoVo trade(Long userId, TradeVo tradeVo);

    Map<String, String> submitOrder(Long userId, OrderInfoVo orderInfovo);

    OrderInfo saveOrderInfo(OrderInfoVo orderInfoVo, Long userId);

    void cancelOrder(Long orderId);

    OrderInfo getOrderInfo(String orderNo);

    Page<OrderInfo> getOrderByUserPage(Page<OrderInfo> pageInfo, Long userId);

    void orderPaySuccess(String orderNo);
}
